/*
 * SelectableComponent.java - Copyright Apr 16, 2012 Z Networks Group, Inc. All rights reserved.
 * Z Networks Group PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.andromeda.skadi.view.swing;

import java.awt.*;
import javax.swing.*;
import org.jdesktop.jxlayer.JXLayer;

/**
 *
 * @author Dickinson Roman Arismendy Torres
 */
public class SelectableComponent extends JPanel {


    public static void main(String[] args) {
        JFrame frame = new JFrame("test");
        frame.setDefaultCloseOperation(3);
        JPanel p = new JPanel();
        final EditorLayer layer = new EditorLayer();
        final JXLayer l = new JXLayer(p, layer);
        JPopupMenu menu = new JPopupMenu();
        JTextField TextField = new JTextField(30);
        TextField.add(menu);
        p.add(TextField);
        p.setBackground(Color.WHITE);
        frame.add(l);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }
}
